﻿@*
This view is used to refresh a part of the form keeping the controls deep when rended partial view to string
*@
@using InnovaApp.Layers.ResourcesLayer.Properties
@model InnovaApp.Portals.MVC4Portal.Models.AdvancedSamples_AddressesManagementModel
<div id="divForm">
    <div>
        @Html.Partial("_ContactViewer", Model.CurrentContact)
    </div>
    <div class="divAddressList formHeight">
        <ol id="lstSelector">
            <li value="-1" class="ui-widget-content">@Resources.View_AdvancedSamples_AddressesManagement_NewOne</li>
            @foreach (var item in Model.Addresses)
            { 
                <li value="@item.Value" class="ui-widget-content @(Model.CurrentAddress.Id.ToString() == item.Value ? "ui-selected" : "")">@item.Text</li>
            }
        </ol>
    </div>
    <fieldset>
        <div class="divAddressForm rightForm formHeight">
            @Html.EditorFor(m => m.CurrentAddress)
        </div>
    </fieldset>
</div>
